#include "start.h"
#include "ui_start.h"

Start::Start(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Start)
{
    ui->setupUi(this);
    this->setWindowTitle("开始");

    connect(&o,&Over::Mysignal,this,&Start::dealover);
    connect(&s,&Success::Mysignal,this,&Start::dealsuccess);
    connect(&f,&FirstFloor::Oversignal,this,&Start::dealffover);
    connect(&f,&FirstFloor::Successsignal,this,&Start::dealffsuccess);
}

Start::~Start()
{
    delete ui;
}

void Start::on_pushButton_clicked()
{
    this->hide();
    f.show();
}
void Start::dealover(){
    o.hide();
    this->show();
}
void Start::dealsuccess(){
    s.hide();
    this->show();
}
void Start::dealffover(){
    f.hide();
    o.show();
}
void Start::dealffsuccess(){
    f.hide();
    s.show();
}

